package jjn.round1;

/**
 * @author Jiang Jining
 * @since 2022-12-08 21:58
 */
public class LeetCode1812_DetermineColorOfAChessboardSquare {
    public boolean squareIsWhite(String coordinates) {
        char[] chars = coordinates.toCharArray();
        int x = chars[0] - 'a';
        int y = chars[1] - '0';
        return (x + y) % 2 == 0;
    }
}
